interface IPerson {
  name: string;
}
interface IConcat {
  phone: string;
}
type ConcatPhone = IPerson & IConcat;

let cp: ConcatPhone = {
  name: "张三",
  phone: "10001",
};
console.log(cp);

interface IA {
  show(n: number): string;
}
interface IB {
  show(n: string): string;
}

type IC = IA & IB;
let ic: IC = {
  show(n: number | string) {
    console.log(1);

    return "";
  },
};

ic.show("2");

// interface IFather {
//   show(n: number): string;
// }
// interface ISon extends IFather {
//   show(n: string): string;
// }
